package org.practice.model;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author jack
 * 继承映射
 */
public class Book extends Product implements java.io.Serializable{
	private static final long serialVersionUID=1234567L;
	private static final String DATA_FORMAT = "yyyy-MM-dd";
	private SimpleDateFormat sdf = new SimpleDateFormat(DATA_FORMAT);
	private String author;

	private String publishing;

	private long publishTime;

	private String wordNumber;

	private String edtion;

	private String totalPage;

	private long printTime;

	private String folio;

	private String printNumber;
	
	private String isbn;

	private String summary;

	private String catalogue;

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublishing() {
		return publishing;
	}

	public void setPublishing(String publishing) {
		this.publishing = publishing;
	}

	public long getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(long publishTime) {
		this.publishTime = publishTime;
	}

	public String getWordNumber() {
		return wordNumber;
	}

	public void setWordNumber(String wordNumber) {
		this.wordNumber = wordNumber;
	}

	public String getEdtion() {
		return edtion;
	}

	public void setEdtion(String edtion) {
		this.edtion = edtion;
	}

	public String getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(String totalPage) {
		this.totalPage = totalPage;
	}

	public long getPrintTime() {
		return printTime;
	}

	public void setPrintTime(long printTime) {
		this.printTime = printTime;
	}

	public String getFolio() {
		return folio;
	}

	public void setFolio(String folio) {
		this.folio = folio;
	}

	public String getPrintNumber() {
		return printNumber;
	}

	public void setPrintNumber(String printNumber) {
		this.printNumber = printNumber;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getCatalogue() {
		return catalogue;
	}

	public void setCatalogue(String catalogue) {
		this.catalogue = catalogue;
	}
	public String getPublishDate() {
		Date date = new Date();
		date.setTime(publishTime);
		return sdf.format(date);
	}
	
}
